package org.mitoma.logger.client;

import org.mitoma.logger.shared.AuthInfo;

import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * The async counterpart of <code>LoggerService</code>.
 */
public interface LoggerServiceAsync {

  void login(String email, String password, AsyncCallback<AuthInfo> callback);

  void preRegister(String email, String password, AsyncCallback<Void> callback);

  void register(String userId, AsyncCallback<AuthInfo> callback);

  void isLoggedIn(AsyncCallback<AuthInfo> callback);

}
